package com.summo.demo.entity;

import java.util.Date;

import javax.persistence.*;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.summo.demo.base.AbstractBaseDO;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@TableName("t_user_log")
@NoArgsConstructor
@AllArgsConstructor
public class UserLogDO extends AbstractBaseDO<UserLogDO> {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 操作内容
     */
    private String operation;

    /**
     * 耗时
     */
    private Long time;

    /**
     * IP
     */
    private String ip;

    /**
     * 操作地点
     */
    private String location;

    /**
     * 应答码
     */
    @Column(name = "response_code")
    private String responseCode;

    /**
     * 操作方法
     */
    private String method;

    /**
     * 参数内容
     */
    private String params;

    /**
     * 应答内容
     */
    @Column(name = "response_text")
    private String responseText;
}